package com.xiye.common.entity;

import java.io.Serializable;

/**
 * @author 西野
 * @version V1.0
 * @title IpPositioning.java
 * @package com.xiye.common.entity
 * @description 根据IP地址定位对应的省市区信息
 * @date 2018-08-17
 */
public class IpPositioning implements Serializable {

    /*
     * mob文档地址http://api.mob.com/product/api/detail/11
     *
     * JSON返回示例：
        {
            "msg": "success",
            "result": {
                "city": "上海",
                "country": "中国",
                "ip": "222.73.199.34",
                "province": "上海"
            },
            "retCode": "200"
        }
       错误码参照20801--查不到相关IP的数据;20802--IP参数错误
     */
    private String retCode; // 返回码

    private CityMessage result; // 城市返回结果

    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    public CityMessage getResult() {
        return result;
    }

    public void setResult(CityMessage result) {
        this.result = result;
    }
}

